Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add missing attributes to launch template, remove null resource for tag propagation, propagate default tags to instances, allow propagated name to be set independently of ASG #169

Merged
merged 7 commits into from
Nov 22, 2021

Conversation

bryantbiggs
Copy link
Member

@bryantbiggs bryantbiggs commented Nov 16, 2021

Description

  • Add additional attributes that have been added to the launch template specification lately
  • Remove the null resource for updating propagated tags; replace with a list comprehension expression that achieves the same result
  • Add default tags data source and add in default tags to propagated tags: closes Support default_tags propagation #162
  • Add new variable instance_name that allows users to set the propagated instance name independently of the ASG var.name; if not specified it defaults to current var.name: closes Since 4.0.0 the ASG name is used to fill the EC2 "Name" tag  #158
  • Make the attribute block_duration_minutes option under spot_options - this is still supported in the AWS provider but by making this optional it will fix/close spot instances no longer support block duration #156

Motivation and Context

Breaking Changes

No, but users will see some updates in their plans with the switch from null resource to list comprehension of propagated tags

# module.complete_lc.null_resource.tags_as_list_of_maps[0] will be destroyed
  - resource "null_resource" "tags_as_list_of_maps" {
      - id       = "4889299483352056787" -> null
      - triggers = {
          - "key"                 = "Environment"
          - "propagate_at_launch" = "true"
          - "value"               = "dev"
        } -> null
    }

How Has This Been Tested?

  • I have tested and validated these changes using one or more of the provided examples/* projects
    • Launched complete example on master and switched to this branch and verified changes and diffs

… for tag propagation, proagate default tags to instances, allow propagated name to be set independently of ASG

- Add additional attributes that have been added to the launch template specification lately
- Remove the null resource for updating propagated tags; replace with a list comprehension expression that achieves the same result
- Add default tags data source and add in default tags to propagated tags: closes #162
- Add new variable `instance_name` that allows users to set the propagated instance name independently of the ASG `var.name`; if not specified it defaults to current `var.name`: closes #158
- Make the attribute `block_duration_minutes` option under `spot_options` - this is still supported in the AWS provider but by making this optional it will fix/close #156
main.tf Outdated Show resolved Hide resolved
outputs.tf Outdated Show resolved Hide resolved
@bryantbiggs
Copy link
Member Author

@antonbabenko this one should be ready if you have some time

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost perfect.

PS: Feel free to push PRs for the semantic-release to all other modules if you have time. Let's finish them during this week.

outputs.tf Outdated Show resolved Hide resolved
@antonbabenko antonbabenko merged commit f14ca13 into terraform-aws-modules:master Nov 22, 2021
antonbabenko pushed a commit that referenced this pull request Nov 22, 2021
# [4.9.0](v4.8.1...v4.9.0) (2021-11-22)

### Features

* add missing attributes to launch template, remove null resource for tag propagation, propagate default tags to instances, allow propagated name to be set independently of ASG ([#169](#169)) ([f14ca13](f14ca13))
@antonbabenko
Copy link
Member

This PR is included in version 4.9.0 🎉

@bryantbiggs bryantbiggs deleted the feat/update-attributes branch November 22, 2021 14:22
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants